package views;

import mvc.AbstractModel;
import mvc.AbstractView;
import mvc.IController;

public class SurveyView extends AbstractView
{

	public SurveyView(IController controller, AbstractModel survey)
	{
		super(controller);
		itsSurveyModel = survey;
	}

	@Override
	public void onInputString(String str)
	{
		itsIController.onAction(str);
	}

	@Override
	public void update()
	{
		System.out.println(itsSurveyModel.getCaption());
	}
	
	private AbstractModel itsSurveyModel;
}
